<form id="filter" action="{:url('open')}" method="post">
    <foreach name="filters" item="filter">
    <if condition="$filter['type']==='timePeriods'">
    <div>
        <label for="{$filter.name}">{$filter.title}</label>
        <input type="text" id="{$filter.name}-start" name="filter[{$filter.name}][start]" value="{$filter.value.start|default=''}">
        <input type="text" id="{$filter.name}-end" name="filter[{$filter.name}][end]" value="{$filter.value.end|default=''}">
    </div>
    <else/>
    <div>
        <label for="{$filter.name}">{$filter.title}</label>
        <input type="text" id="{$filter.name}" name="filter[{$filter.name}]" value="{$filter.value|default=''}">
    </div>
    </if>
    </foreach>
    <foreach name="link_action_types['where']" item="link">
    <button name="action_id" value="{$link.id}">{$link.title}</button>
    </foreach>
</form>
